import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)


const routes = [
  {
    path: '/',
    redirect: {name: 'login'}
  },
  {
    path: '/login',  //登录
    name: 'login',
    component: resolve => require(['@/components/login'], resolve)
  },
  // {
  //   path: '/researchAnalysis',
  //   name: 'researchAnalysis',
  //   component: resolve => require(['@/components/page/researchAnalysis'], resolve)
  // },
  // {
  //   path: '/home',
  //   name: 'home',
  //   component: resolve => require(['@/components/page/home'], resolve)
  // },
  {
    path: '/mainframe',
    name: 'mainframe',
    component: resolve => require(['@/components/page/mainframe'], resolve),
    children: [
      {
        path: '/home',  // 首页
        name: 'home',
        meta: {title: '首页'},
        component: resolve => require(['@/components/page/home'], resolve)
      },
      // 活动管理
      {
        path: '/bannerMgt',  // 活动管理-banner管理
        name: 'bannerMgt',
        meta: {title: '活动管理'},
        redirect: '/bannerList',
        component: resolve => require(['@/components/page/activityMgt/bannerMgt'], resolve),
        children: [
          {
            path: '/bannerList',  // 活动管理-banner管理-banner列表
            name: 'bannerList',
            meta: {title: 'banner列表'},
            component: resolve => require(['@/components/page/activityMgt/bannerMgt/bannerList'], resolve)
          },
          {
            path: '/bannerAd',  // 活动管理-banner管理-banner广告
            name: 'bannerAd',
            meta: {title: 'banner广告'},
            component: resolve => require(['@/components/page/activityMgt/bannerMgt/bannerAd'], resolve)
          },
          {
            path: '/bannerView',  // 活动管理-banner管理-banner详细
            name: 'bannerView',
            meta: {title: 'banner详细'},
            component: resolve => require(['@/components/page/activityMgt/bannerMgt/bannerView'], resolve)
          },
          {
            path: '/bannerAdd',  // 活动管理-banner管理-banner新增
            name: 'bannerAdd',
            meta: {title: 'banner新增'},
            component: resolve => require(['@/components/page/activityMgt/bannerMgt/bannerEdit'], resolve)
          },
          {
            path: '/bannerUpdate',  // 活动管理-banner管理-banner修改
            name: 'bannerUpdate',
            meta: {title: 'banner修改'},
            component: resolve => require(['@/components/page/activityMgt/bannerMgt/bannerEdit'], resolve)
          },
          {
            path: '/couponList',  // 活动管理-优惠券管理-优惠券列表
            name: 'couponList',
            meta: {title: '优惠券列表'},
            component: resolve => require(['@/components/page/activityMgt/couponMgt/couponList'], resolve)
          },
          {
            path: '/couponView',  // 活动管理-优惠券管理-优惠券详细
            name: 'couponView',
            meta: {title: '优惠券详细'},
            component: resolve => require(['@/components/page/activityMgt/couponMgt/couponView'], resolve)
          },
          {
            path: '/couponAdd',  // 活动管理-优惠券管理-优惠券新增
            name: 'couponAdd',
            meta: {title: '优惠券新增'},
            component: resolve => require(['@/components/page/activityMgt/couponMgt/couponEdit'], resolve)
          },
          {
            path: '/couponUpdate',  // 活动管理-优惠券管理-优惠券修改
            name: 'couponUpdate',
            meta: {title: '优惠券修改'},
            component: resolve => require(['@/components/page/activityMgt/couponMgt/couponEdit'], resolve)
          },
          {
            path: '/applyDeviceList',
            name: 'applyDeviceList',
            meta: {title: '设备申请'},
            component: resolve => require(['@/components/page/activityMgt/applyDeviceList'], resolve)
          },
          {
            path: '/applyFreeOrderList',
            name: 'applyFreeOrderList',
            meta: {title: '免费视频申请'},
            component: resolve => require(['@/components/page/activityMgt/applyFreeOrderList'], resolve)
          },
          {
            path: '/applyServiceList',
            name: 'applyServiceList',
            meta: {title: '服务申请'},
            component: resolve => require(['@/components/page/activityMgt/applyServiceList'], resolve)
          },
          {
            path: '/deviceReceiveList',
            name: 'deviceReceiveList',
            meta: {title: '设备领取'},
            component: resolve => require(['@/components/page/activityMgt/deviceReceiveList'], resolve)
          },
        ]
      },
      // 疾病管理
      {
        path: '/hospitalDiseasesMgt',  // 疾病管理-医院疾病管理
        name: 'hospitalDiseasesList',
        meta: {title: '疾病管理'},
        redirect: '/hospitalDiseasesMgt',
        component: resolve => require(['@/components/page/diseaseMgt/hospitalDiseasesMgt'], resolve),
        children: [
          {
            path: '/hospitalDiseasesMgt',
            name: 'hospitalDiseasesMgt',
            meta: {title: '医院疾病列表'},
            component: resolve => require(['@/components/page/diseaseMgt/hospitalDiseasesMgt/hospitalDiseasesList'], resolve)
          },
          {
            path: '/hospitalDiseasesEdit',
            name: 'hospitalDiseasesEdit',
            meta: {title: '医院疾病编辑'},
            component: resolve => require(['@/components/page/diseaseMgt/hospitalDiseasesMgt/hospitalDiseasesEdit'], resolve)
          },
          { // 疾病管理-疾病库管理
            path: '/disLibraryMgt',
            name: 'disLibraryMgt',
            meta: {title: '疾病库列表'},
            component: resolve => require(['@/components/page/diseaseMgt/disLibraryMgt/disLibraryList'], resolve)
          }
        ]
      },
      // 科室管理
      {
        path: '/departmentList',
        name: 'department',
        meta: {title: '科室管理'},
        component: resolve => require(['@/components/page/department'], resolve),
        children: [
          {
            path: '/departmentList',
            name: 'departmentList',
            meta: {title: '科室列表'},
            component: resolve => require(['@/components/page/department/departmentList'], resolve),
          }
        ]
      },
      // App管理
      {
        path: '/appMgt',
        name: 'appMgt',
        meta: {title: 'App管理'},
        redirect: '/appUpgradeList',
        component: resolve => require(['@/components/page/appMgt/appMgt'], resolve),
        children: [
          {
            path: '/appUpgradeList',
            name: 'appUpgradeList',
            meta: {title: 'APP版本管理'},
            component: resolve => require(['@/components/page/appMgt/appUpgradeList'], resolve)
          },
          {
            path: '/appView',
            name: 'appView',
            meta: {title: 'APP版本详细'},
            component: resolve => require(['@/components/page/appMgt/appView'], resolve)
          },
          {
            path: '/appAdd',
            name: 'appAdd',
            meta: {title: 'APP版本新增'},
            component: resolve => require(['@/components/page/appMgt/appEdit'], resolve)
          },
          {
            path: '/appEdit',
            name: 'appEdit',
            meta: {title: 'APP版本编辑'},
            component: resolve => require(['@/components/page/appMgt/appEdit'], resolve)
          }
        ]
      },
      // 资讯管理
      {
        path: '/informationMgt',
        name: 'informationMgt',
        meta: {title: '资讯管理'},
        redirect: '/healthInfo',
        component: resolve => require(['@/components/page/informationMgt/informationMgt'], resolve),
        children: [
          {
            path: '/healthInfo',
            name: 'healthInfo',
            meta: {title: '健康资讯'},
            component: resolve => require(['@/components/page/informationMgt/healthInfo'], resolve)
          },
          {
            path: '/IndustryList',
            name: 'IndustryList',
            meta: {title: '行业资讯'},
            component: resolve => require(['@/components/page/informationMgt/IndustryList'], resolve)
          },
          {
            path: '/companyDynamicList',
            name: 'companyDynamicList',
            meta: {title: '公司动态'},
            component: resolve => require(['@/components/page/informationMgt/companyDynamicList'], resolve)
          },
          {
            path: '/InformationTypeList',
            name: 'InformationTypeList',
            meta: {title: '资讯类型'},
            component: resolve => require(['@/components/page/informationMgt/InformationTypeList'], resolve)
          }
          ,
          {
            path: '/diseaseScience',
            name: 'diseaseScience',
            meta: {title: '病症科普'},
            component: resolve => require(['@/components/page/informationMgt/diseaseScienceList'], resolve)
          }
          ,
          {
            path: '/relatedInspection',
            name: 'relatedInspection',
            meta: {title: '相关检查'},
            component: resolve => require(['@/components/page/informationMgt/relatedInspectionList'], resolve)
          }
          ,
          {
            path: '/knowledgeOfMedication',
            name: 'knowledgeOfMedication',
            meta: {title: '用药知识'},
            component: resolve => require(['@/components/page/informationMgt/knowledgeOfMedicationList'], resolve)
          }
        ]
      },
      // 用户管理
      {
        path: '/consumerMgt',
        name: 'consumerMgt',
        meta: {title: '用户管理'},
        redirect: '/consumerList',
        component: resolve => require(['@/components/page/consumerMgt/consumerMgt'], resolve),
        children: [
          {
            path: '/consumerList',
            name: 'consumerList',
            meta: {title: '用户列表'},
            component: resolve => require(['@/components/page/consumerMgt/consumerMgt/consumerList'], resolve)
          },
          {
            path: '/consumerView',
            name: 'consumerView',
            meta: {title: '用户列表详情'},
            component: resolve => require(['@/components/page/consumerMgt/consumerMgt/consumerView'], resolve)
          },
          {
            path: '/pcUserList',
            name: 'pcUserList',
            meta: {title: '会员管家用户列表'},
            component: resolve => require(['@/components/page/consumerMgt/pcUserList'], resolve)
          },
          {
            path: '/registrationManagement',
            name: 'registrationManagement',
            meta: {title: '注册单位管理'},
            component: resolve => require(['@/components/page/consumerMgt/consumerMgt/registrationManagement'], resolve)
          }
        ]
      },
      // 服务包管理
      {
        path: '/servicePackageList',
        name: 'serviceGiftMgt',
        meta: {title: '服务包管理'},
        redirect: '/serviceGiftList',
        component: resolve => require(['@/components/page/servicePackage/serviceGiftMgt'], resolve),
        children: [
          {
            path: '/servicePackageList',  // 服务包列表
            name: 'servicePackageList',
            meta: {title: '服务包列表'},
            component: resolve => require(['@/components/page/servicePackage/servicePackageList'], resolve)
          },
          {
            path: '/servicePackagePriceConfig',  //服务包价格配置
            name: 'servicePackagePriceConfig',
            meta: {title: '服务包价格配置'},
            component: resolve => require(['@/components/page/servicePackage/servicePackagePriceConfig'], resolve)
          },
          {
            path: '/serviceGiftList',
            name: 'serviceGiftList',
            meta: {title: '服务包礼品列表'},
            component: resolve => require(['@/components/page/servicePackage/serviceGiftMgt/serviceGiftList'], resolve)
          },
          {
            path: '/serviceGiftView',
            name: 'serviceGiftView',
            meta: {title: '服务包礼品列表'},
            component: resolve => require(['@/components/page/servicePackage/serviceGiftMgt/serviceGiftView'], resolve)
          },
          {
            path: '/serviceGiftEdit',
            name: 'serviceGiftEdit',
            meta: {title: '服务包礼品修改'},
            component: resolve => require(['@/components/page/servicePackage/serviceGiftMgt/serviceGiftEdit'], resolve)
          },
          {
            path: '/serviceGiftAdd',
            name: 'serviceGiftAdd',
            meta: {title: '服务包礼品新增'},
            component: resolve => require(['@/components/page/servicePackage/serviceGiftMgt/serviceGiftView'], resolve)
          }
        ]
      },
      // 医院管理
      {
        path: '/cooperationHospital',  // 医院管理
        name: 'hosptail',
        meta: {title: '医院管理'},
        component: resolve => require(['@/components/page/hospitalCheck/index'], resolve),
        children: [
          {
            path: '/cooperationHospital',  //合作医院管理
            name: 'cooperationHospital',
            meta: {title: '合作医院管理'},
            component: resolve => require(['@/components/page/hospitalCheck/cooperationHospital'], resolve),
          },
          {
            path: '/hospitalList',  // 医院列表
            name: 'hospitalList',
            meta: {title: '医院列表'},
            component: resolve => require(['@/components/page/hospital/hospitalList'], resolve)
          },
          {
            path: '/recipeDoctorList',
            name: 'recipeDoctorList',
            meta: {title: '处方医生管理'},
            component: resolve => require(['@/components/page/hospital/recipeDoctorMgt/recipeDoctorList'], resolve)
          },
          {
            path: '/pharmacyMgt',
            name: 'pharmacyMgt',
            meta: {title: '药店管理'},
            component: resolve => require(['@/components/page/hospital/pharmacyMgt'], resolve)
          },
          {
            path: '/hospitalAuditMgt',
            name: 'hospitalAuditMgt',
            meta: {title: '医院审核管理'},
            component: resolve => require(['@/components/page/hospital/hospitalAuditMgt'], resolve)
          },
          {
            path: '/fetalHeart', // 合作医院管理-胎心
            name: 'fetalHeart',
            meta: {title: '胎心设备管理'},
            component: resolve => require(['@/components/page/hospitalCheck/fetalHeart'], resolve)
          },
          {
            path: '/hospitalDepartment',  //医院科室管理
            name: 'hospitalDepartment',
            meta: {title: '医院科室管理'},
            component: resolve => require(['@/components/page/hospital/hospitalDepartment'], resolve)
          },
          {
            path: '/homeAgreementList',
            name: 'homeAgreementList',
            meta: {title: '家庭签约服务协议列表'},
            component: resolve => require(['@/components/page/hospital/homeAgreementMgt/homeAgreementList'], resolve)
          },
          {
            path: '/homeAgreementView',
            name: 'homeAgreementView',
            meta: {title: '家庭签约服务协议详细'},
            component: resolve => require(['@/components/page/hospital/homeAgreementMgt/homeAgreementView'], resolve)
          },
          {
            path: '/homeAgreementEdit',
            name: 'homeAgreementEdit',
            meta: {title: '家庭签约服务协议编辑'},
            component: resolve => require(['@/components/page/hospital/homeAgreementMgt/homeAgreementEdit'], resolve)
          },
          {
            path: '/homeAgreementAdd',
            name: 'homeAgreementAdd',
            meta: {title: '家庭签约服务协议新增'},
            component: resolve => require(['@/components/page/hospital/homeAgreementMgt/homeAgreementEdit'], resolve)
          },
          {
            path: '/unionLeaderAudit',  //医院科室管理
            name: 'unionLeaderAudit',
            meta: {title: '医联体管理'},
            component: resolve => require(['@/components/page/hospital/unionLeaderAudit'], resolve)
          },
          {
            path: '/pharmacyApplyMgt',
            name: 'pharmacyApplyMgt',
            meta: {title: '药店处方医生审核'},
            component: resolve => require(['@/components/page/hospital/pharmacyApplyMgt'], resolve)
          },
          {
            path: '/medicalUnion',  //医院科室管理
            name: 'medicalUnion',
            meta: {title: '医联体管理'},
            component: resolve => require(['@/components/page/hospital/medicalUnion'], resolve)
          }
        ]
      },
      // 医生管理
      {
        path: '/doctor',
        name: 'doctor',
        meta: {title: '医生管理'},
        redirect: '/doctorList',
        component: resolve => require(['@/components/page/doctor/doctor'], resolve),
        children: [
          {
            path: '/doctorList',
            name: 'doctorList',
            meta: {title: '医生列表'},
            component: resolve => require(['@/components/page/doctor/doctorList'], resolve)
          },
          {
            path: '/reviewDoctor',
            name: 'reviewDoctor',
            meta: {title: '资格审核'},
            component: resolve => require(['@/components/page/doctor/reviewDoctor'], resolve)
          },
          {
            path: '/doctorWithdrawalsList',
            name: 'doctorWithdrawalsList',
            meta: {title: '高灯提现列表'},
            component: resolve => require(['@/components/page/doctor/doctorWithdrawalsList'], resolve)
          },
          {
            path: '/ordinaryWithdrawal',
            name: 'ordinaryWithdrawal',
            meta: {title: '普通提现列表'},
            component: resolve => require(['@/components/page/doctor/ordinaryWithdrawal'], resolve)
          },
          {
            path: '/doctorApplyList',
            name: 'doctorApplyList',
            meta: {title: '专家申请列表'},
            component: resolve => require(['@/components/page/doctor/doctorApplyList'], resolve)
          },
          {
            path: '/featuredDoctor',
            name: 'featuredDoctor',
            meta: {title: '精选医生管理'},
            component: resolve => require(['@/components/page/doctor/featuredDoctor'], resolve)
          }
        ]
      },
      //  转诊
      {
        path: '/referralDiseaseQuestions',
        name: 'referral',
        meta: {title: '转诊'},
        redirect: '/referralDiseaseQuestions',
        component: resolve => require(['@/components/page/referral/index'], resolve),
        children: [
          {
            path: '/referralDiseaseQuestions',
            name: 'referralDiseaseQuestions',
            meta: {title: '转诊病种问题模板'},
            component: resolve => require(['@/components/page/referral/referralDiseaseQuestions'], resolve)
          },
          {
            path: '/referralDisease',
            name: 'referralDisease',
            meta: {title: '转诊病种管理'},
            component: resolve => require(['@/components/page/referral/referralDisease'], resolve)
          },
          {
            path: '/referralAdminConfig',
            name: 'referralAdminConfig',
            meta: {title: '转诊经办人管理'},
            component: resolve => require(['@/components/page/referral/referralAdminConfig'], resolve)
          },
        ]
      },
      // 数字产品管理
      {
        path: '/digitalProductsMgt',
        name: 'digitalProductsMgt',
        meta: {title: '数字产品管理'},
        redirect: '/digitalProductsList',
        component: resolve => require(['@/components/page/digitalProductsMgt/index'], resolve),
        children: [
          {
            path: '/digitalProductsList',
            name: 'digitalProductsList',
            meta: {title: '数字产品列表'},
            component: resolve => require(['@/components/page/digitalProductsMgt/digitalProductsList'], resolve)
          },
          {
            path: '/editDigitalProductView',
            name: 'editDigitalProductView',
            meta: {title: '数字产品编辑'},
            component: resolve => require(['@/components/page/digitalProductsMgt/editDigitalProductView'], resolve)
          }
        ]
      },
      // 业务管理
      {
        path: '/business',
        name: 'business',
        meta: {title: '业务管理'},
        redirect: '/inspectionManagement',
        component: resolve => require(['@/components/page/business/inspection/index'], resolve),
        children: [
          {
            path: '/inspectionManagement',
            name: 'inspectionManagement',
            meta: {title: '快诊管理'},
            component: resolve => require(['@/components/page/business/inspection/inspectionManagement'], resolve)
          },
          {
            path: '/physical',
            name: 'physical',
            meta: {title: '体检管理'},
            component: resolve => require(['@/components/page/business/physical/index'], resolve)
          },
          {
            path: '/healthRiskType',
            name: 'healthRiskType',
            meta: {title: '风险筛查分类'},
            component: resolve => require(['@/components/page/business/healthRiskType/index'], resolve)
          },
          {
            path: '/healthRiskSetting',
            name: 'healthRiskSetting',
            meta: {title: '风险筛查配置'},
            component: resolve => require(['@/components/page/business/healthRiskSetting/index'], resolve)
          },
          {
            path: '/healthRiskTestAthome',
            name: 'healthRiskTestAthome',
            meta: {title: '居家监测'},
            component: resolve => require(['@/components/page/business/healthRiskTestAthome/index'], resolve)
          },
          {
            path: '/healthRiskTestSelf',
            name: 'healthRiskTestSelf',
            meta: {title: '健康自测'},
            component: resolve => require(['@/components/page/business/healthRiskTestSelf/index'], resolve)
          },
          {
            path: '/examinationElements',
            name: 'examinationElements',
            meta: {title: '体检元素管理'},
            component: resolve => require(['@/components/page/business/inspection/examinationElements/index'], resolve)
          },
          {
            path: '/systemMessage',
            name: 'systemMessage',
            meta: {title: '系统消息管理'},
            component: resolve => require(['@/components/page/business/systemMessage/index'], resolve)
          },

          {
            path: '/costInterpretation',
            name: 'costInterpretation',
            meta: {title: '报告解读费用设置'},
            component: resolve => require(['@/components/page/business/costInterpretation/index'], resolve)
          },
          {
            path: '/followUp',
            name: 'followUp',
            meta: {title: '随访包服务'},
            component: resolve => require(['@/components/page/business/followUp/index'], resolve)
          },
          {
            path: '/happiness',
            name: 'happiness',
            meta: {title: '健康快乐100分包'},
            component: resolve => require(['@/components/page/business/happiness/index'], resolve)
          }, {
            path: '/fetalHeartInterpretation',
            name: 'fetalHeartInterpretation',
            meta: {title: '胎心解读管理'},
            component: resolve => require(['@/components/page/business/fetalHeart/index'], resolve)
          }, {
            path: '/ECGInterpretation',
            name: 'ECGInterpretation',
            meta: {title: '心电解读管理'},
            component: resolve => require(['@/components/page/business/hospitalECG/index'], resolve)
          }, {
            path: '/fourHigh',
            name: 'fourHigh',
            meta: {title: '四高解读管理'},
            component: resolve => require(['@/components/page/business/fourHigh/index'], resolve)
          }, {
            path: '/interpretationConfig',
            name: 'interpretationConfig',
            meta: {title: '解读配置'},
            component: resolve => require(['@/components/page/business/fetalHeart/interpretationConfig'], resolve)
          }, {
            path: '/recommend',
            name: 'recommend',
            meta: {title: '推荐服务管理'},
            component: resolve => require(['@/components/page/business/recommend/index'], resolve)
          }, {
            path: '/medicalConsortium',
            name: 'medicalConsortium',
            meta: {title: '医联体管理'},
            component: resolve => require(['@/components/page/business/medicalConsortium/index'], resolve)
          }, {
            path: '/measureIndex',
            name: 'measureIndex',
            meta: {title: '知识/措施'},
            component: resolve => require(['@/components/page/business/measureManage/measureIndex'], resolve)
          }
        ]
      },
      // 财务管理
      {
        path: '/financial',
        name: 'financial',
        meta: {title: '财务管理'},
        redirect: '/finspectionOrder',
        component: resolve => require(['@/components/page/financial/index'], resolve),
        children: [
          {
            path: '/finspectionOrder',
            name: 'finspectionOrder',
            meta: {title: '快诊订单管理'},
            component: resolve => require(['@/components/page/financial/finspectionOrder'], resolve)
          },
          {
            path: '/financeFollowUp',
            name: 'financeFollowUp',
            meta: {title: '随访包订单管理'}, // 财务管理下
            component: resolve => require(['@/components/page/business/followUp/financeFollowUp/index'], resolve)
          },
          {
            path: '/finsphysicalOrder',
            name: 'finsphysicalOrder',
            meta: {title: '体检订单管理'},
            component: resolve => require(['@/components/page/financial/finsphysicalOrder'], resolve)
          },
          {
            path: '/consumerWithdrawal',
            name: 'consumerWithdrawal',
            meta: {title: 'C端提现'},
            component: resolve => require(['@/components/page/financial/consumerWithdrawal'], resolve)
          },
          {
            path: '/diseaseBill',
            name: 'diseaseBill',
            meta: {title: '慢病对账'},
            component: resolve => require(['@/components/page/financial/diseaseBill'], resolve)
          }
        ]
      },
      // 工作室管理
      {
        path: '/wdStudio',
        name: 'wdStudio',
        meta: {title: '工作室管理'},
        redirect: '/wdStudioList',
        component: resolve => require(['@/components/page/wdStudio/index'], resolve),
        children: [
          {
            path: '/wdStudioList',  // 工作室列表
            name: 'wdStudioList',
            meta: {title: '工作室列表'},
            component: resolve => require(['@/components/page/wdStudio/wdStudioList'], resolve)
          },
          {
            path: '/wdStudioView',
            name: 'wdStudioView',
            meta: {title: '工作室详细'},
            component: resolve => require(['@/components/page/wdStudio/wdStudioView'], resolve)
          },
          {
            path: '/studioDiseaseMgt',
            name: 'studioDiseaseMgt',
            meta: {title: '工作室病种管理'},
            component: resolve => require(['@/components/page/wdStudio/studioDiseaseMgt'], resolve)
          },
        ]
      },
      {
        path: '/BSide',
        name: 'BSide',
        meta: {title: 'B端业务配置'},
        redirect: '/priceSetting',
        component: resolve => require(['@/components/page/BSide/index'], resolve),
        children: [
          {
            path: '/priceSetting',
            name: 'priceSetting',
            meta: {title: '服务价格设置'},
            component: resolve => require(['@/components/page/BSide/priceSetting'], resolve)
          },
          {
            path: '/productSettings',
            name: 'productSettings',
            meta: {title: '服务产品设置'},
            component: resolve => require(['@/components/page/BSide/productSettings'], resolve)
          },
          {
            path: '/ECG-config',
            name: 'ECG-config',
            meta: {title: '动态心电服务配置'},
            component: resolve => require(['@/components/page/BSide/ECG-config'], resolve)
          },
          {
            path: '/indicatorConfig',
            name: 'indicatorConfig',
            meta: {title: '指标解读医生配置'},
            component: resolve => require(['@/components/page/BSide/indicatorConfig'], resolve)
          },
          {
            path: '/buyMedicine',
            name: 'buyMedicine',
            meta: {title: '购药回访权益'},
            component: resolve => require(['@/components/page/BSide/buyMedicine'], resolve)
          },
          {
            path: '/equityOrder',
            name: 'equityOrder',
            meta: {title: '权益试纸订单'},
            component: resolve => require(['@/components/page/BSide/equityOrder'], resolve)
          },
          {
            path: '/setEquity',
            name: 'setEquity',
            meta: {title: '购药回访权益权益设置'},
            component: resolve => require(['@/components/page/BSide/setEquity/setEquity'], resolve)
          }
        ]
      },
      // 订单管理
      {
        path: '/orderManage',
        name: 'orderManage',
        meta: {title: '订单管理'},
        redirect: '/inspectionOrder',
        component: resolve => require(['@/components/page/business/index'], resolve),
        children: [
          {
            path: '/inspectionOrder',
            name: 'inspectionOrder',
            meta: {title: '快诊订单管理'},
            component: resolve => require(['@/components/page/business/inspection/inspectionOrder'], resolve)
          },
          {
            path: '/percent',
            name: 'percent',
            meta: {title: '100分包订单管理'},
            component: resolve => require(['@/components/page/business/happiness/order'], resolve)
          },
          {
            path: '/physicalOrder',
            name: 'physicalOrder',
            meta: {title: '体检订单管理'},
            component: resolve => require(['@/components/page/business/physical/physicalOrder'], resolve)
          },
          {
            path: '/faceConsultation',
            name: 'faceConsultation',
            meta: {title: '面诊订单管理'},
            component: resolve => require(['@/components/page/financial/faceConsultation'], resolve)
          },
          {
            path: '/followUpOrder',
            name: 'followUpOrder',
            meta: {title: '随访包订单管理'}, // 订单管理
            component: resolve => require(['@/components/page/business/followUp/followUpOrder/index'], resolve)
          },
          {
            path: '/healthCheckOrder',
            name: 'healthCheckOrder',
            meta: {title: '风险筛查订单管理'}, // 风险筛查订单列表
            component: resolve => require(['@/components/page/business/healthCheckOrder/index'], resolve)
          },
          {
            path: '/healthRiskTestSelfOrder',
            name: 'healthRiskTestSelfOrder',
            meta: {title: '健康自测订单管理'}, // 健康自测订单列表
            component: resolve => require(['@/components/page/business/healthRiskTestSelfOrder/index'], resolve)
          },
          {
            path: '/holterOrder',
            name: 'holterOrder',
            meta: {title: '动态心电订单'}, // 动态心电订单
            component: resolve => require(['@/components/page/business/ECG/holterOrder'], resolve)
          },
          {
            path: '/remoteOrder',
            name: 'remoteOrder',
            meta: {title: '远程订单'}, // 远程订单
            component: resolve => require(['@/components/page/business/ECG/remoteOrder'], resolve)
          },
          {
            path: '/fetalHeartOrder',
            name: 'fetalHeartOrder',
            meta: {title: '胎心解读订单'},
            component: resolve => require(['@/components/page/business/fetalHeart/fetalHeartOrder'], resolve)
          },
          {
            path: '/ECGOrder',
            name: 'ECGOrder',
            meta: {title: '心电解读订单'},
            component: resolve => require(['@/components/page/business/hospitalECG/ECGOrder'], resolve)
          },
          {
            path: '/fourHighOrder',
            name: 'fourHighOrder',
            meta: {title: '四高解读订单'},
            component: resolve => require(['@/components/page/business/fourHigh/fourHighOrder'], resolve)
          },
          {
            path: '/goodsOrderMgt',
            name: 'goodsOrderMgt',
            meta: {title: '商品订单列表'},
            component: resolve => require(['@/components/page/orderMgt/goodsOrderMgt/goodsOrderList'], resolve)
          },
          {
            path: '/goodsOrderView',
            name: 'goodsOrderView',
            meta: {title: '商品订单详细'},
            component: resolve => require(['@/components/page/orderMgt/goodsOrderMgt/goodsOrderView'], resolve)
          },
          { // 检测解读订单管理
            path: '/communityOrderMgt',
            name: 'communityOrderMgt',
            meta: {title: '检测解读订单列表'},
            component: resolve => require(['@/components/page/orderMgt/communityOrderMgt/communityOrderList'], resolve)
          },
          {
            path: '/communityOrderView',
            name: 'communityOrderView',
            meta: {title: '检测解读订单详细'},
            component: resolve => require(['@/components/page/orderMgt/communityOrderMgt/communityOrderView'], resolve)
          },
          { // 单次咨询订单管理
            path: '/singleOrderMgt',
            name: 'singleOrderMgt',
            meta: {title: '单次咨询订单列表'},
            component: resolve => require(['@/components/page/orderMgt/singleOrderMgt/singleOrderList'], resolve)
          },
          {
            path: '/singleOrderView',
            name: 'singleOrderView',
            meta: {title: '单次咨询订单列表'},
            component: resolve => require(['@/components/page/orderMgt/singleOrderMgt/singleOrderView'], resolve)
          },
          { // 服务包订单管理
            path: '/servicePageOrderMgt',
            name: 'servicePageOrderMgt',
            meta: {title: '服务包订单列表'},
            component: resolve => require(['@/components/page/orderMgt/servicePageOrderMgt/servicePageOrderList'], resolve)
          },
          {
            path: '/servicePageOrderView',
            name: 'servicePageOrderView',
            meta: {title: '服务包订单详细'},
            component: resolve => require(['@/components/page/orderMgt/servicePageOrderMgt/servicePageOrderView'], resolve)
          },
          {
            path: '/configurationVolunteerView',
            name: 'configurationVolunteerView',
            meta: {title: '服务包义工配置'},
            component: resolve => require(['@/components/page/orderMgt/servicePageOrderMgt/configurationVolunteerView'], resolve)
          }
        ]
      },
      // 系统管理
      {
        path: '/menuMgt',  // 系统管理-菜单管理
        name: 'menuList',
        meta: {title: '系统设置'},
        redirect: '/menuMgt',
        component: resolve => require(['@/components/page/systemSetting/index'], resolve),
        children: [
          {
            path: '/menuMgt',
            name: 'menuMgt',
            meta: {title: '菜单管理'},
            component: resolve => require(['@/components/page/systemSetting/menuMgt/menuList'], resolve)
          },
          {
            path: '/roleMgt',
            name: 'roleMgt',
            meta: {title: '角色管理'},
            component: resolve => require(['@/components/page/systemSetting/roleMgt/roleList'], resolve)
          },
          {
            path: '/userMgt',
            name: 'userMgt',
            meta: {title: '系统用户管理'},
            component: resolve => require(['@/components/page/systemSetting/userMgt/userList'], resolve)
          },
        ]
      },
      {
        path: '/testPaperMgt',  //系统管理-菜单管理
        name: 'testPaperMgt',
        meta: {title: '试纸管理'},
        redirect: '/testPaperList',
        component: resolve => require(['@/components/page/testPaperMgt/testPaperMgt'], resolve),
        children: [
          {
            path: '/testPaperList',
            name: 'testPaperList',
            meta: {title: '试纸列表'},
            component: resolve => require(['@/components/page/testPaperMgt/testPaperList'], resolve)
          },
          {
            path: '/vendorManagement',
            name: 'vendorManagement',
            meta: {title: '试纸厂商管理'},
            component: resolve => require(['@/components/page/testPaperMgt/vendorManagement'], resolve)
          },
          {
            path: '/factoryList',
            name: 'factoryList',
            meta: {title: '生产厂家列表'},
            component: resolve => require(['@/components/page/goods/factoryList'], resolve)
          },
          {
            path: '/codeManagement',
            name: 'codeManagement',
            meta: {title: 'code码管理'},
            component: resolve => require(['@/components/page/testPaperMgt/codeManagement'], resolve)
          },
          {
            path: '/shipManagement',
            name: 'shipManagement',
            meta: {title: '发货管理'},
            component: resolve => require(['@/components/page/testPaperMgt/shipManagement'], resolve)
          }
        ]
      },
      {
        path: '/modifyPassword',
        name: 'modifyPassword',
        meta: {title: '修改密码'},
        component: resolve => require(['@/components/page/systemSetting/userMgt/modifyPassword'], resolve)
      },
      {
        path: '/feedbackPage',
        name: 'feedbackPage',
        meta: {title: '问题反馈'},
        component: resolve => require(['@/components/page/feedback/feedbackPage'], resolve)
      },
      {
        path: '/OCStudioList',
        name: 'OCStudioList',
        meta: {title: '专家团队列表'},
        component: resolve => require(['@/components/page/ocStudioMgt/OCStudioList'], resolve)
      },
      {
        path: '/handleList',
        name: 'handleList',
        meta: {title: '医院手柄列表'},
        component: resolve => require(['@/components/page/handleMgt/handleList'], resolve)
      },
      // 检测解读
      {
        path: '/detectionPriceTemplate',
        name: 'detectionInterpretation',
        meta: {title: '检测解读'},
        redirect: '/detectionPriceTemplate',
        component: resolve => require(['@/components/page/detectMgt/detectMgt'], resolve),
        children: [
          {
            path: '/detectionPriceTemplate',
            name: 'detectionPriceTemplate',
            meta: {title: '检测解读价格模板'},
            component: resolve => require(['@/components/page/detectMgt/detectionMgt/detectionPriceTemplate'], resolve)
          },
          {
            path: '/doctorCheckChangeList',
            name: 'doctorCheckChangeList',
            meta: {title: '检测解读医生切换记录'},
            component: resolve => require(['@/components/page/detectMgt/detectionMgt/doctorCheckChangeList'], resolve)
          },

        ]
      },
      {
        path: '/LogList',
        name: 'LogList',
        meta: {title: '日志记录'},
        component: resolve => require(['@/components/page/logMgt/LogList'], resolve)
      },
      {
        path: '/operationGuide',
        name: 'operationGuide',
        meta: {title: '操作指南'},
        redirect: '/operationGuideList',
        component: resolve => require(['@/components/page/operationGuideMgt/operationGuide'], resolve),
        children: [
          {
            path: '/operationGuideList',
            name: 'operationGuideList',
            meta: {title: '操作指南列表'},
            component: resolve => require(['@/components/page/operationGuideMgt/operationGuideList'], resolve)
          }
        ]
      },
      {
        path: '/advertising',
        name: 'advertising',
        meta: {title: '广告管理'},
        redirect: '/advertisingList',
        component: resolve => require(['@/components/page/advertisingMgt/advertisingMgt'], resolve),
        children: [
          {
            path: '/advertisingList',
            name: 'advertisingList',
            meta: {title: '广告列表'},
            component: resolve => require(['@/components/page/advertisingMgt/advertisingList'], resolve)
          },
          {
            path: '/advertisingBannerList',
            name: 'advertisingBannerList',
            meta: {title: 'Banner广告'},
            component: resolve => require(['@/components/page/advertisingMgt/advertisingBannerList'], resolve)
          }
        ]
      },
      // 药品管理
      {
        path: '/drugMgt',
        name: 'drugMgt',
        meta: {title: '药品管理'},
        redirect: '/drugLibList',
        component: resolve => require(['@/components/page/drugMgt/drugMgt'], resolve),
        children: [
          {
            path: '/drugList',
            name: 'drugList',
            meta: {title: '处方目录管理'},
            component: resolve => require(['@/components/page/drugMgt/drugList'], resolve)
          },
          {
            path: '/drugLibList',
            name: 'drugLibList',
            meta: {title: '药品列表'},
            component: resolve => require(['@/components/page/drugMgt/drugLibList'], resolve)
          },
          {
            path: '/drugTypeList',
            name: 'drugTypeList',
            meta: {title: '药品病种分类'},
            component: resolve => require(['@/components/page/drugMgt/drugTypeList'], resolve)
          },
          {
            path: '/recommendedDrugs',
            name: 'recommendedDrugs',
            meta: {title: '药U选管理'},
            component: resolve => require(['@/components/page/drugMgt/recommendedDrugs'], resolve)
          },
          {
            path: '/hotDrugList',
            name: 'hotDrugList',
            meta: {title: '热销药品'},
            component: resolve => require(['@/components/page/drugMgt/hotDrugList'], resolve)
          },
        ]
      },
      // 商品管理
      {
        path: '/goodsMgt',
        name: 'goodsMgt',
        meta: {title: '商品管理'},
        redirect: '/goodsList',
        component: resolve => require(['@/components/page/goods/goodsMgt'], resolve),
        children: [
          {
            path: '/goodsList',
            name: 'goodsList',
            meta: {title: '商品列表'},
            component: resolve => require(['@/components/page/goods/goodsList'], resolve)
          },

          {
            path: '/factoryBrandList',
            name: 'factoryBrandList',
            meta: {title: '品牌列表'},
            component: resolve => require(['@/components/page/goods/factoryBrandList'], resolve)
          },
          {
            path: '/goodsServiceConfigList',
            name: 'goodsServiceConfigList',
            meta: {title: '商品服务列表'},
            component: resolve => require(['@/components/page/goods/goodsServiceConfigList'], resolve)
          }
        ]
      },
      // 检测项目管理
      {
        path: '/detectTypeList',
        name: 'detectMgt',
        meta: {title: '检测项目管理'},
        redirect: '/detectTypeList',
        component: resolve => require(['@/components/page/detectMgt/detectMgt'], resolve),
        children: [
          {
            path: '/detectTypeList',
            name: 'detectTypeList',
            meta: {title: '检测类型列表'},
            component: resolve => require(['@/components/page/detectMgt/detectMgt/detectTypeList'], resolve)
          },
          {
            path: '/editDetectType',
            name: 'editDetectType',
            meta: {title: '编辑检测项目类型'},
            component: resolve => require(['@/components/page/detectMgt/detectMgt/editDetectType'], resolve)
          },
          {
            path: '/detectItemList',
            name: 'detectItemList',
            meta: {title: '检测项目列表'},
            component: resolve => require(['@/components/page/detectMgt/detectMgt/detectItemList'], resolve)
          },
          {
            path: '/apparatusList',
            name: 'apparatusList',
            meta: {title: '检测仪器列表'},
            component: resolve => require(['@/components/page/detectMgt/detectMgt/apparatusList'], resolve)
          },
          {
            path: '/detectionReferenceMgt',
            name: 'detectionReferenceMgt',
            meta: {title: '检测指标管理'},
            component: resolve => require(['@/components/page/detectMgt/detectionMgt/detectionReferenceMgt/detectionReferenceList'], resolve)
          },
          {
            path: '/deviceReferenceMgt',
            name: 'deviceReferenceMgt',
            meta: {title: '检测项指标管理'},
            component: resolve => require(['@/components/page/detectMgt/detectionMgt/deviceReferenceMgt/deviceReferenceList'], resolve)
          },
          {
            path: '/detectList',
            name: 'detectList',
            meta: {title: '检测数据列表'},
            component: resolve => require(['@/components/page/detectMgt/detectMgt/detectList'], resolve)
          },
          {
            path: '/versionList',
            name: 'versionList',
            meta: {title: '底座版本管理'},
            component: resolve => require(['@/components/page/detectMgt/detectMgt/versionList'], resolve)
          },
          {
            path: '/clinicalManagement',
            name: 'clinicalManagement',
            meta: {title: '临床应用管理'},
            component: resolve => require(['@/components/page/detectMgt/detectMgt/clinicalManagement'], resolve)
          }
        ]
      },
      {
        path: '/codeManage',
        name: 'codeManage',
        meta: {title: '收费编码管理'},
        redirect: '/colorDoppler',
        component: resolve => require(['@/components/page/changeCodeManage/index'], resolve),
        children: [
          {
            path: '/colorDoppler',
            name: 'colorDoppler',
            meta: {title: '彩超配置'},
            component: resolve => require(['@/components/page/changeCodeManage/colorDoppler'], resolve)
          }, {
            path: '/remoteInterpretation',
            name: 'remoteInterpretation',
            meta: {title: '远程解读'},
            component: resolve => require(['@/components/page/changeCodeManage/remoteInterpretation'], resolve)
          }, {
            path: '/consulationService',
            name: 'consulationService',
            meta: {title: '问诊服务'},
            component: resolve => require(['@/components/page/changeCodeManage/consulationService'], resolve)
          }, {
            path: '/remoteImage',
            name: 'remoteImage',
            meta: {title: '远程影像'},
            component: resolve => require(['@/components/page/changeCodeManage/remoteImage'], resolve)
          }, {
            path: '/consultationReferral',
            name: 'consultationReferral',
            meta: {title: '会诊转诊'},
            component: resolve => require(['@/components/page/changeCodeManage/consultationReferral'], resolve)
          }
        ]
      },
      {
        path: '/companyMgt',
        name: 'companyMgt',
        meta: {title: 'B端管理'},
        redirect: '/companyList',
        component: () => import('@/components/page/companyMgt/index'),
        children: [
          {
            path: '/companyList',
            name: 'companyList',
            meta: {title: 'B端管理'},
            component: () => import('@/components/page/companyMgt/companyList')
          },
          {
            path: '/macAddress',
            name: 'macAddress',
            meta: {title: 'mac地址管理'},
            component: () => import('@/components/page/companyMgt/macAddress')
          },
          {
            path: '/branch',
            name: 'branch',
            meta: {title: '分店管理'},
            component: () => import('@/components/page/companyMgt/branch')
          }
        ]
      },
      {
        path: '/pharmacy',
        name: 'pharmacy',
        meta: {title: '药店运营'},
        redirect: '/ticket',
        component: resolve => require(['@/components/page/pharmacy/index'], resolve),
        children: [
          {
            path: '/ticket',
            name: 'ticket',
            meta: {title: '小票广告管理'},
            component: resolve => require(['@/components/page/pharmacy/ad/ticket'], resolve)
          },
          {
            path: '/ticketEcharts',
            name: 'ticketEcharts',
            meta: {title: '小票打印统计'},
            component: resolve => require(['@/components/page/pharmacy/ad/ticketEcharts'], resolve)
          },
          {
            path: '/cooperativeMmanufacturer',
            name: 'cooperativeMmanufacturer',
            meta: {title: '合作厂家管理'},
            component: resolve => require(['@/components/page/pharmacy/factory/cooperativeManufacturer'], resolve)
          },
          {
            path: '/equityPlan',
            name: 'equityPlan',
            meta: {title: '权益方案管理'},
            component: resolve => require(['@/components/page/pharmacy/equityPlan/equityPlan'], resolve)
          },
          {
            path: '/themeTask',
            name: 'themeTask',
            meta: {title: '主题任务发布(专病)'},
            component: resolve => require(['@/components/page/pharmacy/themeTask/themeTask'], resolve)
          },
          {
            path: '/featureTheme',
            name: 'featureTheme',
            meta: {title: '主题任务发布(专项)'},
            component: resolve => require(['@/components/page/pharmacy/featureTheme/featureTheme'], resolve)
          },
          {
            path: '/detectionItem',
            name: 'detectionItem',
            meta: {title: '检测项赠送审核'},
            component: resolve => require(['@/components/page/pharmacy/detection/detectionItem'], resolve)
          },
          {
            path: '/screening',
            name: 'screening',
            meta: {title: '健康筛查赠送审核'},
            component: resolve => require(['@/components/page/pharmacy/healthScreening/screening'], resolve)
          },
          {
            path: '/complications',
            name: 'complications',
            meta: {title: '合并症管理'},
            component: resolve => require(['@/components/page/pharmacy/complications/complications'], resolve)
          },
          {
            path: '/diseaseTheme',
            name: 'diseaseTheme',
            meta: {title: '疾病主题管理'},
            component: resolve => require(['@/components/page/pharmacy/diseaseTheme/diseaseTheme'], resolve)
          },
          {
            path: '/material',
            name: 'material',
            meta: {title: '素材管理'},
            component: resolve => require(['@/components/page/pharmacy/diseaseTheme/material'], resolve)
          },
          {
            path: '/specialTheme',
            name: 'specialTheme',
            meta: {title: '特色专项主题管理'},
            component: resolve => require(['@/components/page/pharmacy/feature/specialTheme'], resolve)
          },
          {
            path: '/specialDisease',
            name: 'specialDisease',
            meta: {title: '专病健康筛查活动'},
            component: resolve => require(['@/components/page/pharmacy/specialDisease/specialDisease'], resolve)
          },
          {
            path: '/activityReserve',
            name: 'activityReserve',
            meta: {title: '活动预约发布'},
            component: resolve => require(['@/components/page/pharmacy/activityReserve/activityReserve'], resolve)
          }, {
            path: '/reserveDetail',
            name: 'reserveDetail',
            meta: {title: '预约明细'},
            component: resolve => require(['@/components/page/pharmacy/activityReserve/reserveDetail'], resolve)
          }, {
            path: '/diseasesList',
            name: 'diseasesList',
            meta: {title: '关联病症'},
            component: resolve => require(['@/components/page/pharmacy/activityReserve/diseasesList'], resolve)
          }, {
            path: '/annunciate',
            name: 'annunciate',
            meta: {title: '行政通告'},
            component: resolve => require(['@/components/page/pharmacy/annunciateManage/annunciate'], resolve)
          }
        ]
      },
      {
        path: '/healthMap',
        name: 'healthMap',
        meta: {title: '健康地图'},
        redirect: '/healthMap',
        component: resolve => require(['@/components/page/healthMap/index'], resolve),
        children: [
          {
            path: '/diseaseList',
            name: 'diseaseList',
            meta: {title: '病种管理'},
            component: resolve => require(['@/components/page/healthMap/diseaseManager/diseaseList'], resolve)
          },
          {
            path: '/diseaseArteryList',
            name: 'diseaseArteryList',
            meta: {title: '动脉粥硬化心血管疾病管理'},
            component: resolve => require(['@/components/page/healthMap/diseaseArteryManage/diseaseArteryList'], resolve)
          },
          {
            path: '/liangbiaoList',
            name: 'liangbiaoList',
            meta: {title: '量表管理'},
            component: resolve => require(['@/components/page/healthMap/liangbiaoManage/liangbiaoList'], resolve)
          },
          {
            path: '/rewardList',
            name: 'rewardList',
            meta: {title: '体验奖励配置'},
            component: resolve => require(['@/components/page/healthMap/rewardConfigManage/rewardList'], resolve)
          },
          {
            path: '/rewardOrderList',
            name: 'rewardOrderList',
            meta: {title: '奖励订单'},
            component: resolve => require(['@/components/page/healthMap/rewardOrderManage/rewardOrderList'], resolve)
          },
          {
            path: '/lifeDiscIndex',
            name: 'lifeDiscIndex',
            meta: {title: '生命圆盘'},
            component: resolve => require(['@/components/page/healthMap/lifeDiscManage/lifeDiscIndex'], resolve)
          },
          {
            path: '/healthAdviceIndex',
            name: 'healthAdviceIndex',
            meta: {title: '健康建议'},
            component: resolve => require(['@/components/page/healthMap/healthAdviceManage/healthAdviceIndex'], resolve)
          },
          {
            path: '/activeHealthTasksIndex',
            name: 'activeHealthTasksIndex',
            meta: {title: '主动健康任务'},
            component: resolve => require(['@/components/page/healthMap/activeHealthTasksManage/activeHealthTasksIndex'], resolve)
          },
          {
            path: '/userNeeds',
            name: 'userNeeds',
            meta: {title: '用户需知'},
            component: resolve => require(['@/components/page/healthMap/userNeedsManage/userNeeds'], resolve)
          },
          {
            path: '/indicatorList',
            name: 'indicatorList',
            meta: {title: '指标管理'},
            component: resolve => require(['@/components/page/healthMap/indicatorManage/indicatorList'], resolve)
          },
          {
            path: '/pointerList',
            name: 'pointerList',
            meta: {title: '指征管理'},
            component: resolve => require(['@/components/page/healthMap/pointerManage/pointerList'], resolve)
          }
        ]
      },
      /*慢病签约*/
      {
        path: '/slowDiseaseSign',
        name: 'slowDiseaseSign',
        meta: {title: '慢病专病管理'},
        redirect: '/slowDiseaseSign',
        component: resolve => require(['@/components/page/slowDiseaseSign/index'], resolve),
        children: [
          {
            path: '/familyMedicineList',
            name: 'familyMedicineList',
            meta: {title: '家庭类药品分类'},
            component: resolve => require(['@/components/page/slowDiseaseSign/familyMedicine/familyMedicineList'], resolve)
          },
          {
            path: '/comboStatisticsList',
            name: 'comboStatisticsList',
            meta: {title: '套餐包统计'},
            component: resolve => require(['@/components/page/slowDiseaseSign/comboStatistics/comboStatisticsList'], resolve)
          },
          {
            path: '/drugClassfiyIndex',
            name: 'drugClassfiyIndex',
            meta: {title: '药品分类管理'},
            component: resolve => require(['@/components/page/slowDiseaseSign/drugClassfiyManage/drugClassfiyIndex'], resolve)
          },
          {
            path: '/userKnow',
            name: 'userKnow',
            meta: {title: '用户需知管理'},
            component: resolve => require(['@/components/page/slowDiseaseSign/userKnowManage/userKnow'], resolve)
          },
          {
            path: '/comboAuditList',
            name: 'comboAuditList',
            meta: {title: '套餐包审核'},
            component: resolve => require(['@/components/page/slowDiseaseSign/comboAudit/comboAuditList'], resolve)
          },
          {
            path: '/comboOrderList',
            name: 'comboOrderList',
            meta: {title: '套餐包订单'},
            component: resolve => require(['@/components/page/slowDiseaseSign/comboOrder/comboOrderList'], resolve)
          },
          {
            path: '/consumableList',
            name: 'consumableList',
            meta: {title: '耗材统计'},
            component: resolve => require(['@/components/page/slowDiseaseSign/consumableManage/consumableList'], resolve)
          }, {
            path: '/prescriptionList',
            name: 'prescriptionList',
            meta: {title: '处方管理'},
            component: resolve => require(['@/components/page/slowDiseaseSign/prescriptionListManage/prescriptionList'], resolve)
          },{
            path: '/prescriptionAuditList',
            name: 'prescriptionAuditList',
            meta: {title: '处方审核'},
            component: resolve => require(['@/components/page/slowDiseaseSign/prescriptionAuditManage/prescriptionAuditList'], resolve)
          },{
            path: '/diseaseStorageList',
            name: 'diseaseStorageList',
            meta: {title: '病种待入库'},
            component: resolve => require(['@/components/page/slowDiseaseSign/diseaseStorageManage/diseaseStorageList'], resolve)
          }

        ]
      },


      {
        path: '/promoteMgt',
        name: 'promoteMgt',
        meta: {title: '业务推广'},
        redirect: '/inviteDoctorList',
        component: resolve => require(['@/components/page/promoteMgt/promoteMgt'], resolve),
        children: [
          {
            path: '/inviteDoctorList',
            name: 'inviteDoctorList',
            meta: {title: '药店申请'},
            component: resolve => require(['@/components/page/promoteMgt/inviteDoctorList'], resolve)
          },
          {
            path: '/doctorJoinList',
            name: 'doctorJoinList',
            meta: {title: '医生入驻'},
            component: resolve => require(['@/components/page/promoteMgt/doctorJoinList'], resolve)
          },

        ]
      },
      {
        path: '/programManagement',
        name: 'programManagement',
        meta: {title: '方案管理'},
        redirect: '/schemeList',
        component: () => import(/* webpackChunkName: "programManagement" */ '@/components/page/programManagement/index'),
        children: [
          {
            path: '/schemeList',
            name: 'schemeList',
            meta: {title: '方案管理'},
            component: () => import(/* webpackChunkName: "programManagement" */ '@/components/page/programManagement/schemeList')
          },
          {
            path: '/welfareConfig',
            name: 'welfareConfig',
            meta: {title: '福利配置'},
            component: () => import(/* webpackChunkName: "programManagement" */ '@/components/page/programManagement/welfareConfig')
          }
        ]
      },
    ]
  },
  // { path: '*', redirect: '/' },//路由按顺序从上到下，依次匹配。最后一个*能匹配全部，然后重定向到主页面
]
const router = new VueRouter({
  routes
})

// 解决路由地址重复的报错问题
/* const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
  return originalPush.call(this, location).catch(err => err)
} */
export default router
